home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / quikcmd3.zip / BUZ.DOC < prev    next >
Text File  |  1992-07-05  |  48KB  |  987 lines

  1.  
  2. BUZ.EXE  Version 1.10                                completed in May 1992
  3.  
  4.  
  5. ~* BUZ.EXE  V1.10    Self-Indexing View/Print Utility for Text Files
  6.  
  7. ~  By Dan Jincks  (C) 1991, 92
  8.  
  9.    All Rights Reserved.  Copying and distribution of BUZ.EXE and BUZ.DOC
  10.    are specifically limited to the terms and conditions contained in
  11.    BUZ.DOC.  Any copying and distribution of BUZ.EXE and BUZ.DOC, other
  12.    then that which is specified in BUZ.DOC, requires the written permission
  13.    of Dan Jincks, the author.  Shareware distribution is specifically
  14.    limited to the United States and Canada.
  15.  
  16.    Version 1.00 was not released to the general public.  A number of copies
  17.    were given out to individuals, and who knows who they gave them to, etc.
  18.    To be sure that a distinction exits, the first true general release is
  19.    called BUZ.EXE Version 1.10 rather than 1.00.  It differs from Version
  20.    1.00 in that it is faster, smaller (but documentation got larger), and
  21.    is more versatile in the print capabilities.  It also has less bugs and
  22.    more error trapping. The Quick Index left extension character was
  23.    changed from a tilde to a right curly bracket.  The Quick Index format
  24.    was changed to make them faster and use less disk space.
  25.  
  26.  
  27.  
  28. ~* Introduction
  29. ---------------
  30.  
  31. BUZ was created to allow standard ASCII text files to serve as "Soft
  32. Publications".  It automatically detects a "prepared for BUZ" text file and
  33. creates an index table "front end" as it begins running.  Pressing an
  34. associated key in the displayed index table, sends the file viewer directly
  35. to that location within the text file.  A single key press returns you to
  36. the index table, from any location in the file.  The file viewer features
  37. full up/down scrolling abilities, by page or by line.  The only preparation
  38. required to a convert a standard ASCII text file, is the simple insertion
  39. of tilde ~ characters at the beginning of lines to be referenced by the
  40. index table.  BUZ automatically highlights lines in the text file that were
  41. marked by a tilde.  Selective highlighting in the index table is available
  42. to aid in defining main and sub sections.  BUZ can also be used to view
  43. ordinary ASCII text files.  Files without index markers are presented
  44. without the index table.  BUZ is also specially designed to allow indexed
  45. viewing of Basic, Assembler, Lisp, Pascal and "C" ASCII source code.  In
  46. source code modes it auto-indexes with reference to any comment lines that
  47. begin in the first character position of a line.
  48.  
  49. In addition to the viewer capabilities of BUZ, it contains considerable
  50. versatility for printing out text files.  Printing can be sent to any LPT
  51. or COM port, or to a file.  Any ASCII file can easily be completely or
  52. partially printed out.  Partial printout definition is set up to bear
  53. relation to the position in the file as it is being viewed.  You can easily
  54. print out just that portion of a large text file that you need.  Automatic
  55. headers and page breaks, with user defined titles, are available for any
  56. printing task.  Page definitions are automatically created by how you
  57. specify each printout, so there is no need to "printer-page format" any
  58. text files that will be printed by BUZ.  If you need a text file
  59. "printer-page formatted" for some reason, BUZ can do that for you as well -
  60. in seconds.  Since BUZ can handle extremely large text files, partial
  61. print-to-file techniques can quickly break up unwieldy files for loading
  62. into limited capacity text editors.  Custom indentation, page lengths, and
  63. line lengths are supported as well.  Considerable file information is also
  64. presented and updated by option settings.
  65.  
  66.  
  67.  
  68. ~  Requirements, Statistics and General Information
  69. ---------------------------------------------------
  70.  
  71. Requirements:
  72.  
  73.     IBM PC Compatible Computer with 256k of available free memory.
  74.     MS-DOS or PC-DOS 3.0 or later.
  75.     Display adapter:  Any that can display 80 character X 25 line text
  76.          screens.  (Mono, Herc, CGA, EGA, VGA)
  77.     For formatted printouts:  Any printer with at least 80 character/line
  78.          capabilities
  79.  
  80. Statistics and General Information:
  81.  
  82.     Maximum size text file: 32,716 lines (typically well over 1 megabyte)
  83.     Maximum number of Index entries in a file: 360
  84.  
  85.     Speed:  Initial startup varies, depending on the system and size of the
  86.          file.  Capable of creating an associated Quick Index file to
  87.          reduce startup time for individual files.  Once the initial
  88.          startup has completed, file access is virtually instantaneous for
  89.          any size file located on hard drive systems.
  90.  
  91.     Type of viewer: Reads directly from disk files, will not alter the
  92.          file.  Highly disk oriented, so the best performance is on a hard
  93.          drive.
  94.  
  95.     Types of files that can be viewed: Standard ASCII text, "Index
  96.          Prepared" Standard ASCII text, ASCII source code.
  97.  
  98.     Source Programming Language of BUZ.EXE:  Microsoft (tm) BASIC
  99.  
  100.     Author of BUZ.EXE and BUZ.DOC:          Dan Jincks
  101.                                             HCR 77, Box 155A
  102.                                             Annapolis, MO 63620 USA
  103.  
  104.     Type of distribution allowed: As Shareware in USA and Canada only.
  105.  
  106.     Availability of source code:  Not generally available - Contact the
  107.          Author.
  108.  
  109.  
  110.  
  111. ~  Command line Syntax for using BUZ.EXE
  112. ----------------------------------------
  113.  
  114. Usage:     BUZ [path]filename [/MSB | /C | /AL | /PAS] [/M | /AC] [/LS]
  115.  
  116.            BUZ or BUZ /?  for syntax
  117.  
  118. filename - The filename of an ASCII file to be viewed by BUZ.  It
  119.            must be ASCII text, free of non-standard control codes.
  120.            BUZ can handle any size file up to 32,716 lines long.
  121.  
  122. /MSB     - Causes BUZ to use the ' single quote character for creating its
  123.            index for the file being viewed. The single quote is typically
  124.            used for comments in Microsoft BASIC (and Quick BASIC source
  125.            code.
  126. /C       - The / slash character is used for indexing - used for comment
  127.            lines in "C" source code.
  128. /AL      - The ; semicolon character is used for indexing - used for
  129.            comment lines in Assembler and Lisp source code.
  130. /PAS     - The { left curly bracket character is used for indexing - used
  131.            for comment lines in Pascal source code.
  132. Note:      By default, BUZ uses the ~ tilde character for creating its
  133.            index.  No matter which character is specified, it must be the
  134.            very first character in a line, without any leading spaces, to
  135.            be recognized as an index marker.
  136.  
  137. /M       - Causes BUZ to display in Monochrome.
  138. /AC      - Causes BUZ to display in an alternate color scheme.
  139.  
  140. /LS      - Causes BUZ to Leave the viewing Screen intact when you quit.
  141.            When you quit while in the viewer, the current screen of
  142.            information remains when you return to the DOS prompt.  If you
  143.            are in the index screen when you quit, a normal exit occurs.
  144.  
  145.  
  146. Examples:
  147.  
  148. BUZ BUZ.DOC
  149.  
  150. To view BUZ.DOC in the default index and color modes.
  151.  
  152. BUZ BUZ.DOC /M
  153.  
  154. To view BUZ.DOC in monochrome.
  155.  
  156. BUZ C:\BASIC\PROGRAM.BAS /MSB /AC
  157.  
  158. To view a Microsoft BASIC source code file named PROGRAM.BAS in the BASIC
  159. subdirectory using the alternate color scheme.
  160.  
  161. BUZ BUZ.DOC /LS
  162.  
  163. To view BUZ.DOC and leave your final view of it on the screen when you
  164. return to the DOS prompt.
  165.  
  166.  
  167.  
  168. ~  Getting the Best Performance from BUZ
  169. ----------------------------------------
  170.  
  171. BUZ.EXE was designed to handle very large text files.  The larger that
  172. a file is, the more likely it is that you may notice BUZ slowing down a
  173. bit.  To get the best speed out of BUZ, certain factors can help
  174. considerably.
  175.  
  176. 1.  Be sure that the file being read is located on a hard drive. (Of course
  177.     a RAM drive is even faster.)  The performance of BUZ is greatly
  178.     affected by disk access speed, so reading a file from a floppy disk is
  179.     the surest way to reduce its overall performance.
  180.  
  181. 2.  If all of the lines in the file are 76 characters or shorter, the
  182.     scrolling response speed is greatly increased, particularly when the
  183.     text file is very large (over 8000 lines).
  184.  
  185. 3.  If the file is free of imbedded Form Feed and Tab characters, scrolling
  186.     speed is slightly faster.
  187.  
  188. 4.  Creating a "BUZ Quick Index" file will greatly reduce the start up
  189.     time for future viewings of any "indexed" text or source code files.
  190.  
  191. All of the above are optional but are well worth the effort if the file is
  192. large and/or a slower computer/drive will be used to view the file.  The
  193. "Printing Definition" screen can provide instant information about #2 and
  194. #3 considerations listed above.  Start by viewing the file, then press "P"
  195. to get the printing screen.  It reports the length of the longest line in
  196. the file, and if it contains any Form Feed or Tab characters.  You do not
  197. need to print anything to view this screen.  By printing-to-a-file you can
  198. create a duplicate file without Form Feed characters.  If you set the
  199. "Tab #" before printing-to-a-file, Tab characters will be replaced by
  200. spaces (see the section about "Tab #").  Long lines however, will require
  201. you to use a text editor.  BUZ cannot reformat or edit text files.  After
  202. #2 and #3 are dealt with as you intend to, then create a BUZ Quick Index
  203. file if you can spare some disk space.  See the "Quick Index" section.
  204.  
  205.  
  206.  
  207. ~* Using the BUZ File Viewer
  208. ----------------------------
  209.  
  210. When BUZ reads a file it automatically determines whether index markers are
  211. present.  If the file has been marked, you will see the index table being
  212. built as it reads the file.  If BUZ cannot find a marker on the first
  213. screen page, it will display the message "Reading File" until it completes
  214. its initial start-up. (It will also display "Reading File" if it is reading
  215. a BUZ Quick Index file.)  The length of time required by the start-up
  216. process is proportional to the length of the file that you are viewing.
  217. The longer the file, the longer the start-up time.  Once the start-up is
  218. complete, BUZ can move around in the file very quickly if the file is on a
  219. hard drive.  Floppy disk files will greatly increase the viewer access
  220. time.  This is because the drive quits running after a short time and must
  221. restart when BUZ looks for a new location in the file.  BUZ does not load
  222. any of the file into RAM.  It only keeps records of locations in the file
  223. in RAM.  This allows reading and moving around quickly in very large files
  224. (well over the basic DOS RAM limitations), but makes floppy disk
  225. performance sluggish.  BUZ was designed primarily for hard drive systems
  226. and large text files, but will function fully on floppy drives - although
  227. much slower.
  228.  
  229. The initial user interface screen and controls will depend on whether the
  230. file was indexed.  If the file was indexed, you will begin with the "Index
  231. Page" screen(s).  If the file was not indexed, you will begin at the top of
  232. the file or "Home" screen of the scrolling viewer.
  233.  
  234. No matter which screen you are in, the very top line is for relevant
  235. information and the very bottom line lists your key press options.  Look up
  236. to see what is happening.  Look down to see what you can do.
  237.  
  238.  
  239.  
  240. ~  The Index Screens
  241. --------------------
  242.  
  243. When a file is "prepared for BUZ", the initial user interface are the index
  244. page screens.  They are an active index to jump directly to various places
  245. within the text file.  This is the equivalent of the table of contents in a
  246. book.  You will be presented with a list of subjects (sections) to choose
  247. from.  All that is required, is to press the listed letter key to go
  248. directly to that place in the text file.  If the index is longer than 18
  249. sections, you can page through the index by using either Page Up - Page
  250. Down keys or by pressing the space bar.  You may also go directly to the
  251. END or top (HOME) of the file, directly from the index.
  252.  
  253. After pressing an index selection, you will begin viewing within the text
  254. file at the desired location.  From there, the normal scrolling viewer is
  255. functioning.  To return to the index from anywhere in the text file, just
  256. press the space bar.  Once back at the index screens, you can jump directly
  257. to another location in the file as desired.
  258.  
  259.  
  260.  
  261. ~  The Scrolling File Viewer
  262. ----------------------------
  263.  
  264. The scrolling file viewer provides full up-down file viewing capabilities.
  265. You can go up or down in the text file by one line at a time or one entire
  266. screen page at a time.  Simply use the cursor keys, Page Up-Down keys,
  267. Home, or End keys to navigate.  Three other optional actions are also
  268. available while using the scrolling file viewer:
  269.  
  270.  
  271.  
  272. ~     Tab#
  273. ----------
  274.  
  275. By pressing the "T" key you can redefine the number of spaces that are
  276. substituted for any ^I tab characters in the file that you are viewing.
  277. The default is to use the DOS standard, 8 space expansion on 8 character
  278. intervals.  For most files this is correct.  Some text editors (most
  279. notably  programming source code editors) allow custom definition of tab
  280. expansion.  If the column alignments don't look correct, or there are
  281. excessive leading spaces in some lines, you may want to try redefining the
  282. tab expansion.  This doesn't actually alter the original file, but will
  283. affect the appearance of the file on both the screen and any printouts.
  284.  
  285. The effect of this tab setting has no interval definition.  It merely
  286. substitutes a given number of spaces for each ^I tab character.  This works
  287. fine for leading tabs, but not for mid-line tabs.  Ideally text files
  288. should not contain ^I tabs, unless they conform to the DOS standard.
  289.  
  290. The "Printing Definition Screen" has an alert that a file contains Tabs or
  291. Form Feed characters.  Press "P" while in the file viewer to check that
  292. alert message, if you suspect that Tabs may be causing problems in a file.
  293.  
  294. Note:  The <T=Tab#> option does not appear as a listed option when the file
  295. viewer is entered from the index, but it is still available by pressing the
  296. "T" key.
  297.  
  298.  
  299.  
  300. ~     Shell
  301. -----------
  302.  
  303. While using the BUZ file viewer, you can press the "S" key to "Shell" to
  304. the DOS command line.  You are not actually quitting BUZ, but freezing its
  305. actions and place while allowing you to return to DOS.  BUZ and your place
  306. in the file being viewed are still in your computers memory.  When you type
  307. "EXIT" at the DOS command line, you will return to BUZ in the place that
  308. you were before you shelled.
  309.  
  310. The shell feature was included to allow you to "hold your place" and do
  311. something else - and then pick up where you left off.  A use for this might
  312. be to try something on your computer that you are reading documentation
  313. about.  Another use might be to hold your place and look up your
  314. appointments or a phone number.  You can even run BUZ a second time on
  315. another file.
  316.  
  317. When you shell, BUZ will report how much free memory is remaining to run
  318. other programs.  Since BUZ is still in memory, you will have less
  319. available.  To regain all of your free memory again you must "Quit" BUZ,
  320. rather than use the shell option.
  321.  
  322. BUZ records the drive and directory that you were in when you used Shell.
  323. You can freely change drives and directories, while back at the DOS command
  324. line, for whatever you need to do.  When you enter the EXIT command to
  325. return to BUZ, it automatically returns to its starting drive and
  326. directory.  Shell cannot be used to change the directory that BUZ is
  327. currently functioning within.
  328.  
  329.  
  330.  
  331. ~     Print
  332. -----------
  333.  
  334. By pressing the "P" key you bring up the printing definition screen.
  335. This screen provides information and choices that allow you to print part
  336. or all of the file that you are currently viewing.  Printing does not occur
  337. by simply pressing the "P" key, so feel free to explore this option without
  338. worry of wasting your paper and ribbon.
  339.  
  340.  
  341.  
  342. ~*       Printing Definition Screen
  343. -----------------------------------
  344.  
  345. BUZ allows a great deal of versatility for printing out text files.  Its
  346. main emphasis is on allowing partial printouts of large files.  For this
  347. reason the "printing definition screen" may appear a bit complicated at
  348. first.  Don't hesitate to explore the available options since you can abort
  349. back to the viewer instantly.  As a matter of fact, the "printing
  350. definition screen" contains a lot of useful information about the file
  351. that you are viewing.  The top 1/3 of the screen contains information about
  352. the file size and just where you were currently located when you pressed
  353. the "P" key in the file viewer.  It also provides information about line
  354. length and some existing control codes.
  355.  
  356. The center 1/3 of the screen is a list of option keys that you can use in
  357. various ways to set up the definition of your printout.  Feel free to
  358. experiment with their settings, without actually starting a printout.  It
  359. will not start printing without a confirmation from you.  Even with a blind
  360. confirmation, the default is to print out only 1 page - you must choose
  361. an option to be able to print more then 1 page.
  362.  
  363. The bottom 1/3 of the screen (inside of the box), is the active definition
  364. for your printout.  It is a summary of the parameters for the printout.
  365. Any input requests will also occur in this box (except for the title).
  366.  
  367. Below are your option keys for defining the printout:
  368.  
  369.  
  370.  
  371. ~           Complete File
  372. -------------------------
  373.  
  374. Pressing the "A" key specifies the entire file from beginning to end.
  375.  
  376.  
  377.  
  378. ~           Current Top Line to End
  379. -----------------------------------
  380.  
  381. Pressing the "B" key specifies printing the top line of the screen to
  382. the end of the file.   "Current Top Line" refers to the line at the top of
  383. the file viewer screen when you pressed the "P" key for the print option.
  384.  
  385.  
  386.  
  387. ~           Current Section
  388. ---------------------------
  389.  
  390. Pressing the "C" key sets the printing definition to print that section of
  391. an indexed file that you were viewing when you entered the "printing
  392. definition screen".  It begins at the index marked line and ends with the
  393. line before the next index marker in the file.  The "current section" title
  394. appears above and you should check that it is what you actually wish to
  395. printout.  If more than one index marked section was on the screen at the
  396. time that you chose "print", the last one on the screen is treated as the
  397. current section.  The "D _ Down one section" and "U _ Up one section"
  398. options allow you to adjust the "current section" by one index marked
  399. section.
  400.  
  401. If the file being viewed contains no section definitions, neither the
  402. option keys nor the section information will appear in the printing
  403. definition screen.
  404.  
  405.  
  406.  
  407. ~           Change Printer Port
  408. -------------------------------
  409.  
  410. The "P" key is a selector key to specify where the printing output is to be
  411. sent.  The "Printing to:" setting in the definition box changes each time
  412. that the "P" key is pressed.  You can send your printout to LPT1, LPT2,
  413. LPT3, COM1, COM2, COM3, COM4, or to a FILE.  The default setting is LPT1.
  414. Be sure that any LPT or COM specification is actually a printer, or you may
  415. cause an error to BUZ (and DOS) that will land you back on the DOS command
  416. line!
  417.  
  418. The "print to a file" capability of BUZ may at first seem redundant, but
  419. it is actually a very versatile option.  Specifying a portion of a large
  420. file can allow you to clip out a portion for a text editor with limited
  421. capacity.  When you "print to a file" the tilde markers are automatically
  422. striped out.  You have the option to print with headers and page breaks, so
  423. you can instantly create a "printer page formatted" file if you have a need
  424. for one.  A few things to keep in mind about the "print to a file" option:
  425.  
  426. 1.  All tilde markers are normally striped out.  ONLY tilde markers are
  427.     striped out.  Any /MSB, /C, /AL, /PAS comment based markers are NOT
  428.     removed.  (Note: To preserve the tilde markers in a normal "prepared
  429.     for BUZ" file, load the file using the /AL command line option.  Also
  430.     be sure that "Indent" is set to zero.)
  431.  
  432. 2.  All pre-existing form feed characters in the file are striped out.
  433.  
  434. 3.  If the text was shifted to the right on the screen, check to see if
  435.     "Indent" is set at 3 by default.  BUZ automatically indents suitable
  436.     files (ones that have no lines over 76 characters in length) by 3
  437.     spaces.  Use the "Indent" setting to adjust if needed.
  438.  
  439. 4.  Printer page formatting with headers and page breaks is set for
  440.     standard 66 line by 80 character pages by default.  The headers will be
  441.     just like a standard BUZ printout.  Since each BUZ printed page ends
  442.     with a FormFeed, "Lines per Page" can be used to control the amount of
  443.     blank lines left at the end of each page.  A smaller number yields more
  444.     blank lines.
  445.  
  446. 5.  Any "TAB#" setting that is in effect, will be reflected in the "print
  447.     to a file" output.  (You can use this feature to strip or replace ^I
  448.     tabs with spaces in some files.)
  449.  
  450. 6.  Any line wraps from line lengths over 80 characters, will not be "hard
  451.     wraps" in the output file.  They will still be their original length.
  452.  
  453.  
  454.  
  455. ~           Wrap Tracking for 80
  456. --------------------------------
  457.  
  458. When Wrap Tracking 80 is [Yes], BUZ will count any lines over 80 characters
  459. as 2 lines to keep the page lengths corrected.  It takes into account the
  460. "Indent" value as well.  It also prevents the header from wrapping if you
  461. "Indent" beyond 5.  If you are printing on an 80 character/line printer,
  462. leave "Wrap Tracking 80" set to [Yes].  If you are printing in condensed
  463. mode (132 or 160 character lines) or on a wide printer, set Wrap Tracking
  464. 80 to [No].  Condensed mode and Wrap Tracking 80 [No], is the best way to
  465. print files that have lines over 80 characters.  The "Max. Line Length"
  466. plus the "Indent" setting will indicate the best printing approach for a
  467. particular file.  If "Max. Line Length" + "Indent" exceeds 80, then some
  468. lines WILL wrap on 80 character/line printers.  The "Max. Line Length"
  469. value is the length of the longest line found in the file.
  470.  
  471.  
  472.  
  473. ~           Specify the Top Line
  474. --------------------------------
  475.  
  476. Pressing the "1" option allows you directly input the line number of the
  477. file where the printout is to begin.
  478.  
  479.  
  480.  
  481. ~           Specify # of Lines to Print
  482. ---------------------------------------
  483.  
  484. Pressing the "2" option allows you to directly input the number of lines
  485. (starting with the defined top line) that will be printed out.
  486.  
  487.  
  488.  
  489. ~           Specify # of Pages to Print
  490. ---------------------------------------
  491.  
  492. Pressing the "3" option allows you to directly input the number of pages
  493. (starting with the defined top line) that will be printed out.  The "Pages"
  494. referred to here will be defined by the "Page Formatting" and "Lines per
  495. Page" settings that are in effect.  Set the "Page Formatting" and "Lines
  496. per Page" options before specifying the number of pages.  If your file
  497. contains long lines that "wrap", the page estimates may be under the actual
  498. number, but the printouts WILL format out properly.
  499.  
  500.  
  501.  
  502. ~           Left Indent
  503. -----------------------
  504.  
  505. This setting is the number of blank spaces in front of each line that is
  506. printed.  There are two defaults: It is set to 3 if there are no lines over
  507. 76 characters in the file, or it is set to zero if the file contains any
  508. longer lines.  You can set the indent to anything that you wish, but you
  509. should do it with caution.  Printers will wrap lines that are longer then
  510. what they can print in a single line.  The wrapped portion of any line will
  511. begin on the next line - without any indentation.  If "Wrap Tracking for
  512. 80" is [Yes], BUZ will at least prevent most page overflows on 80
  513. character/line printers.  The maximum allowed Indent value is 85 when "Wrap
  514. Tracking for 80" is [Yes].
  515.  
  516. The appearance of indented with wrapped lines is usually not very neat,
  517. with one exception - double spaced printouts.  By setting the indent to the
  518. number of characters/line supported by your printer, you will get a neat
  519. double spaced printout.  A double spaced printout should either have "Page
  520. Formatting" set [No] or be done as follows: 1.  Be sure "Max. Line Length"
  521. is not over 80;   2.  Be sure your printer is in 80 character/line mode;
  522. 3.  [Yes] for both "Page Formatting" (or [Lite]) and "Wrap Tracking 80";
  523. 4.  Set the indent value to 80 (plus upto 5 if "Max. Line Length" is 75 or
  524. less).  Note: The "Pages" estimates will be 1/2 of the actual number of
  525. printed pages when you double space using Indent.
  526.  
  527. The "Max. Line Length" value is provided to assist with indenting printouts
  528. properly.  Its value is the length of the longest line in the file.  You
  529. can therefore indent by as many spaces as your printer can handle, in
  530. addition to the longest line.  "Indent" + "Max. Line Length" should not
  531. exceed the character/line abilities of your printer.  If your printer
  532. allows 160 and/or 132 character Condensed printing, you can set your
  533. printer, and indent considerably.  When doing printing in condensed modes
  534. (or on wide printers) be sure to set "Wrap Tracking for 80" to [No].  (Be
  535. aware that BUZ cannot set your printer to condensed mode nor can it detect
  536. that it is set as such.)
  537.  
  538. The indent value affects both the text and the headers.  If "Wrap Tracking
  539. for 80" is [No], the headers are always indented as much as the text.  If
  540. "Wrap Tracking for 80" is [Yes], then the headers will only indent to 5
  541. spaces maximum.  You can indent the text further, but the headers remain at
  542. 5 to prevent them from being wrapped or cropped.
  543.  
  544.  
  545.  
  546. ~           Page Formatting
  547. ---------------------------
  548.  
  549. "Page Formatting" [Yes], means that the output will have an informative
  550. header on each page, and have a few blank lines at the bottom of each page.
  551. "Page Formatting" [No], means that the output will be continuous without
  552. any headers or page-break blank lines.  When you change this setting, all
  553. page estimate values will be adjusted accordingly. "Lines per Page", "Wrap
  554. Tracking for 80", "Change Title" and "Left Indent" settings have relevance
  555. to page formatting that is discussed in each section.
  556.  
  557. The headers on each page contain 5 areas of information:
  558.  
  559.     1. A custom defined title that is constant on each page. See the
  560.        "Change Title" section about defining it.
  561.  
  562.     2. A date is printed.  This is the date (per your computer) that the
  563.        printout was made.  It is not the directory date associated with the
  564.        file being printed.
  565.  
  566.     3. "From line ###"  Reports what line in the file that the printing
  567.        began with.
  568.  
  569.     4. "p#" is the sequence page of the printout.  It starts with 1 on the
  570.        first page, then 2 on the second, etc.
  571.  
  572.     5. The file name that the printout originated from is printed on each
  573.        header.  It is only the basic file name without any preceding path.
  574.  
  575. When "Page Formatting" is [Yes], 11 lines are used per page for the
  576. formatting; 7 for the header, and 4 for page breaks.  See the "Lines per
  577. Page" section for variations that affect the page break spaces.
  578.  
  579. "Page Formatting" [ Lite ] is the same as [ Yes ] except that the header
  580. contains only the Title and page number.  It was included for those
  581. printouts that you do not want much if any header, but need the page
  582. breaks.  Making the Title blank will further reduce the header to only the
  583. page number and header base line.  If you then increase the "Lines per
  584. Page" to 68 and roll back the paper a bit, you will have an uncluttered
  585. printout with little more than page breaks.
  586.  
  587.  
  588.  
  589. ~           Change Title
  590. ------------------------
  591.  
  592. Any printout by BUZ can be formatted with headers and page breaks, or not.
  593. The top line of each formatted printed page has a constant custom defined
  594. title.  By default, the file's title line is used (if there is one).  If
  595. you wish to enter a new title, press "T" and type it in using standard
  596. editing keystrokes as needed.  If you want to clear the line and start
  597. again, press Escape.  Press Enter when you are done.  The title will only
  598. be used if "Page Formatting" is [Yes] or [Lite].  The maximum number of
  599. printable characters is 70.  You can type in more than 70, but they will be
  600. cropped off in the printout.
  601.  
  602.  
  603.  
  604. ~           Lines per Page
  605. --------------------------
  606.  
  607. The "Lines per Page" setting is used to define how many lines your printer
  608. can print per page.  Most tractor feed printers have 66 line pages, which
  609. is the default setting.  Sheet feed printers may have less, perhaps 60.
  610. For the actual printout, this setting is only relevant when "Page
  611. Formatting" is [Yes] or [Lite].  This setting is also used for the number
  612. of page calculations that are displayed on the printing definition screen.
  613.  
  614. The "Lines per Page" setting can also be used to customize the way that
  615. your printout will format.  When the proper number of lines has been
  616. counted by BUZ, it sends a Form Feed to your printer, and begins printing
  617. on the next page (as defined by your printer).  The Header printed by BUZ,
  618. uses 7 lines on each defined page.  Text is then printed until 4 lines are
  619. remaining (or the end of the defined printout), and then a Form Feed is
  620. sent.  This is the default for 66 line pages.  By setting "Lines per Page"
  621. to a lower number, you can increase the number of blank lines on the end of
  622. each page.
  623.  
  624. If you want a no-page-break printout with only one leading header, you
  625. can set "Lines per Page" to the total number of lines to be printed - plus
  626. 11 (or more) to allow for the header and ending blank lines.  The accuracy
  627. of your setting can be confirmed by checking that the "# of Pages:"
  628. indicates just 1.
  629.  
  630. If you can very accurately align the pages on your printer, you can set it
  631. to 68 and save an occasional sheet of paper.  Don't set for less then 2
  632. ending blank lines per page, since BUZ may print an extra line under some
  633. circumstances.  If a page overflow occurs, there will be blank pages and/or
  634. pages that are only partially filled.
  635.  
  636.  
  637.  
  638. ~        Filename for Output
  639. ----------------------------
  640.  
  641. If you are printing-to-a-file, the final question will be to provide a
  642. filename.  The top of your screen will become a directory listing of your
  643. current directory and drive.  The filename that you supply can be preceded
  644. by a path specifying a different directory, but you will not be able to
  645. preview the contents of that directory.  If the filename that you enter
  646. already exists, you will be asked if it is alright to overwrite it or not.
  647. If you answer "N" no, the print-to-a-file will be aborted.
  648.  
  649.  
  650.  
  651. ~* Creating a "Prepared for BUZ" Text File
  652. ------------------------------------------
  653.  
  654. Preparing an existing text file for indexed viewing is extremely simple.
  655. All that needs to be done is to insert a tilde ~ character into the first
  656. character position of lines that are to be used as index markers.  It is
  657. important that the tilde character be the very first character.  If a space
  658. or other character precedes it in the line, it will not be interpreted as a
  659. marker.  Since BUZ has no editing capabilities, you will need to use a text
  660. editor to insert the tilde markers.  If you use a word processor, be sure
  661. that it is used in the ASCII mode, so that its document mode formatting and
  662. control codes are not embedded into the file.
  663.  
  664. The first 2 lines marked by a tilde are for the title and author credits.
  665. They are used only for display purposes, and are not actually placed into
  666. the index list.  If you do not want a title or author line, place the first
  667. 2 tilde markers on leading blank lines.
  668.  
  669. The third tilde marker is the first actual index marker.  All tilde marked
  670. lines, beginning with the third, will be included into the index table as
  671. reference lines.  Any number of tilde marked lines are allowed - up to the
  672. maximum of 360 (20 index screen pages).  Any tilde marked lines exceeding
  673. the maximum are ignored by BUZ.  The marked lines appear in the index table
  674. in same order that they are in the file - from top to bottom.  Typically
  675. the marked lines would be chapter or section titles, but any line can be
  676. marked for index use.  Note that the entire marked line appears in the
  677. index, so marked lines should not exceed 75 characters in length. (They
  678. will be cropped if they are over 75.)
  679.  
  680. When lines marked by a tilde are displayed or printed out by BUZ they will
  681. not include the tilde itself.  Leading tilde characters are striped from
  682. the lines of text before display or printing.  Of course, if a "prepared
  683. for BUZ" file is viewed or printed by another utility, the tilde markers
  684. will be visible.  If you wish to create a copy of the prepared text file
  685. with the tilde markers removed, just have BUZ print-to-a-file the entire
  686. text file.
  687.  
  688. Other than the tilde insertions, there are no other special formatting
  689. requirements for standard ASCII text files.  Any file that displays
  690. properly by using the DOS "TYPE" or "MORE" commands will generally work
  691. well with BUZ.  For best appearances, it is recommended that the line
  692. length be limited to 75 characters (not including the tilde markers).  BUZ
  693. will wrap lines that are over 80 characters in length, but the results will
  694. not be very appealing.  Extremely long lines (over 160 characters) are
  695. likely to cause problems for BUZ.
  696.  
  697. Embedded control codes in a text file may create problems.  BUZ stripes out
  698. any existing ^L (formfeed) codes for screen and printer output and expects
  699. lines to end with a standard carriage return-line feed.  It is not designed
  700. to deal accurately with some control codes, such as lone ^J (line feed)
  701. insertions.  The presence of these types of codes is not always clearly
  702. visible, but they may cause odd screen rolls by the BUZ file viewer.
  703. Embedded ^I (tab) characters may cause problems in lines over 80 characters
  704. long.  For best results, remove any non-standard control codes from text
  705. files intended to be viewed with BUZ.
  706.  
  707. The file viewer will accurately display all ASCII characters from decimal
  708. #32 through #254.  That includes all of the normal upper ASCII graphics
  709. characters.  Whether the graphics characters print properly, will depend on
  710. if the printer can interpret them.  Some of the ASCII characters below #32
  711. (control codes) appear to work in the BUZ viewer, but should not be used
  712. since they have special meanings to printers.  Sending unplanned control
  713. codes to a printer can produce all kinds of havoc in printouts.
  714.  
  715.  
  716.  
  717. ~     Highlighting lines of text
  718. --------------------------------
  719.  
  720. BUZ will automatically highlight any line of text that has the leading
  721. tilde marker character.  (It will do this regardless of whether the file
  722. was intentionally "index prepared" or not.)  To allow emphasis in the index
  723. table, a tilde followed by an asterisk  ~* , will cause that line to be
  724. highlighted in both the index table and the file.  The asterisk character
  725. IS displayed on the screen and on any printouts.
  726.  
  727.  
  728.  
  729. ~     The /MSB /C /AL and /PAS Command Line Options for Source Code
  730. -------------------------------------------------------------------
  731.  
  732. BUZ is equipped to give indexed viewing of properly formatted source code
  733. files for Microsoft BASIC (and Quick BASIC), "C", Assembler, Lisp (and
  734. AutoLisp), and Pascal programming languages.  Of course the desired file
  735. must be in the original ASCII text format, not compiled or in a binary
  736. format.  When /MSB is used, BUZ ignores tilde character and indexes on the
  737.  ' single quote character (the BASIC comment line character) instead.  To
  738. be a qualifying index line, the single quote must be the very first
  739. character on that line.  Any indented comment lines are not treated as
  740. index marked lines, so it is a simple process to qualify certain comment
  741. lines for index usage.  Unlike the default tilde markers, the leading
  742. single quote character is both displayed and printed.  The /C, /AL, and
  743. /PAS options are identical to /MSB except that the index character is
  744. / slash for /C, ; semicolon for /AL, and { the left curly bracket for /PAS
  745. (the leading comment area/line characters for programming source code).
  746.  
  747. [ If you program in another language, and this feature sounds appealing -
  748. send me a sample of source code (with some comment lines included) and I
  749. will try to include an appropriate switch in the future. ]
  750.  
  751. Source code files typically contain lines over 80 characters.  These long
  752. lines cause BUZ to wrap them to the next screen line.  This can cause some
  753. minor aberrations in the viewer's scrolling.  It is accurate in the Page
  754. Up-Down scrolling, but the Line Up-Down scrolling can "skitter" a bit from
  755. the wrapped lines.  What is displayed on the screen is accurate, but the
  756. wrapped lines can cause a slight jump (a few lines) in file location under
  757. some circumstances.  This slight jump is most likely to occur when changing
  758. from using line scrolling to using page scrolling. The printouts ARE quite
  759. accurate, with long lines being wrapped as needed.  For most printouts of
  760. source code, it is recommended that you switch your printer to condensed
  761. mode if it has the capability.  That will eliminate the wrapping of longer
  762. lines. (See the "Wrap Tracking for 80" section.
  763.  
  764.  
  765.  
  766. ~     Creating and Using BUZ Quick Index files
  767. ----------------------------------------------
  768.  
  769. By default BUZ creates an index on-the-fly for valid files.  Creating this
  770. index requires it to parse through every line of the file before you can
  771. begin viewing.  This can take a fair amount of time with large files.  BUZ
  772. can create a copy of the index and save it to disk and then, in future
  773. viewings, read it instead of the entire file.  The use of a BUZ Quick Index
  774. file will typically allow you to begin viewing in 1/2 or less of the normal
  775. startup time. (This is a hard drive speed enhancement feature. It is
  776. disabled while reading a file on the A: or B: drives.  Creating a Quick
  777. Index on a floppy will only waste disk space.)
  778.  
  779. Creating a BUZ Quick Index is as simple a key press!  While in the index
  780. screens, press the X key and a BUZ Quick Index file will be created and
  781. saved to disk in the same directory as the text file that you are viewing.
  782. The BUZ Quick Index file has the same name as its associated text file
  783. except that the first character of the extension is replaced by the right
  784. curly bracket character "}".  The next time that you view your current
  785. file, BUZ will find the Quick Index file and read it instead of parsing the
  786. entire file.
  787.  
  788. If you edit or change a text file that has an associated Quick Index file,
  789. BUZ will know this and not use it.  As a matter of fact, BUZ will
  790. automatically try to delete any Quick Index that no longer matches its
  791. associated text file.  It then switches to its default of parsing through
  792. the entire file.  It is up to you to create a new Quick Index if you want
  793. one.  If you see the index table being built line-by-line, you know that
  794. there is not a valid Quick Index being read.
  795.  
  796. If you create a BUZ Quick Index file for a source code file (loaded with
  797. the /C /MSB /AL or /PAS command line option switch), you will not need to
  798. use the command line switch to view it the next time.  BUZ saves the switch
  799. information in the Quick Index.
  800.  
  801. BUZ Quick Index files are completely optional.  For smaller text files on
  802. fast computers, they are probably a waste of disk space.  For very large
  803. text files and/or on slower computers, you'll probably want to use them for
  804. any files that you will want to view more than a time or two.  You can
  805. safely delete any Quick Index files any time - nothing is lost that cannot
  806. be quickly and easily replaced. (Note: Quick Indexes are NOT read if the
  807. file is on the A: or B: drive)
  808.  
  809.  
  810.  
  811. ~     Example of File Preparation
  812. ---------------------------------
  813.  
  814. Below is an illustration of how "Prepared for BUZ" text files were intended
  815. to be formatted.
  816.  
  817.     +----------------------------------------------------------------+
  818.     |                                                                |
  819.     |~*                        Title                                 |
  820.     |                                                                |
  821.     |~                    Author Credits                             |
  822.     |                                                                |
  823.     |                                                                |
  824.     |~*  Chapter 1                                                   |
  825.     |                                                                |
  826.     | text                                                           |
  827.     | text                                                           |
  828.     | text                                                           |
  829.     |                                                                |
  830.     |~  Sub Section                                                  |
  831.     |                                                                |
  832.     | text                                                           |
  833.     | text                                                           |
  834.     | text                                                           |
  835.     |                                                                |
  836.     |~*  Chapter 2                                                   |
  837.     |                                                                |
  838.     | etc.                                                           |
  839.     +----------------------------------------------------------------+
  840.  
  841.  
  842.  
  843. ~* Become a registered BUZ user!
  844. --------------------------------
  845.  
  846. BUZ.EXE is Shareware.  BUZ.EXE may be shared with others so long as it is
  847. accompanied by BUZ.DOC and both files remain unaltered.  BUZ is intended to
  848. be a try-before-you-buy program.  It is not FREEware.  If you like BUZ and
  849. use it - please register and pay for it.
  850.  
  851. NOTICE: BUZ.EXE may only be distributed in the United States and Canada,
  852. unless you get written permission from the author - Dan Jincks.  No
  853. exceptions!
  854.  
  855. BUZ.EXE was developed to fill a text file viewing need in my other
  856. shareware products.  It turned out so well that I expanded it into a more
  857. powerful general purpose program.  If you are a paid registered user of any
  858. other program by Dan Jincks, you need not pay for BUZ.EXE 1.10 - you are
  859. automatically considered registered.
  860.  
  861.  
  862.  
  863. ~     Basic User Registration
  864. -----------------------------
  865.  
  866. If you are not a paid registered user of another program by Dan Jincks, and
  867. you like and use BUZ.EXE 1.10, you are requested to register as a "basic
  868. user" and pay a small fee.  Your registration will be valid for any future
  869. upgrades that you acquire on your own, until the author requests you to pay
  870. an upgrade fee in the new version documentation.  (not expected until
  871. version 2.00 or later)
  872.  
  873. The fee is very small, and as such, the author offers no "extras" for
  874. registering.  If you like it as-is, please buy it.
  875.  
  876.  
  877.  
  878. ~     Distributing User Registration
  879. ------------------------------------
  880.  
  881. If you are a Shareware or Freeware author, and would like to include
  882. BUZ.EXE 1.10 with your product, you should register as a "distributing
  883. user" and pay a modest "distributing user" registration fee.  Then you may
  884. distribute BUZ.EXE with your Shareware or Freeware - but BUZ.DOC must
  885. accompany it in a very obvious manner.  You may not alter BUZ.EXE or
  886. BUZ.DOC, or attempt to hide its exit message and copyright notices.  You
  887. also must make it clear that BUZ.EXE is unregistered Shareware which
  888. requires a separate "basic user" registration fee if used regularly.
  889.  
  890. The "distributing user" registration is more expensive than the "basic
  891. user" registration.  This is not the act of selling you a distributing
  892. license.  The extra charge is so that I can keep records and supply you
  893. with upgraded versions as they become available.  Record keeping and
  894. shipping disks costs more than the "basic registration" fee.  You are
  895. encouraged to critique the way that BUZ.EXE does or does not fill your
  896. needs.  You are welcome to suggest improvements - and your ideas will be
  897. given serious consideration in developing future improvements.  Sending me
  898. a copy of your applied usage of BUZ.EXE is optional, but recommended.  This
  899. is so that I can tailor improvements properly.
  900.  
  901.  
  902.  
  903. ~     Commercial Distribution
  904. -----------------------------
  905.  
  906. If you are interested it using BUZ.EXE 1.10 in or with a commercial
  907. software product, I am flattered!  Contact me directly to negotiate a very
  908. reasonable arrangement.  BUZ.EXE may NOT be utilized in any commercial
  909. (paid for) products without a written contractual agreement with Dan
  910. Jincks.
  911.  
  912.  
  913.  
  914. ~     Retail Computer System and Software Dealers
  915. -------------------------------------------------
  916.  
  917. You are welcome to distribute BUZ.EXE under the same conditions as the
  918. "Distributing User" as outlined above.  You may not charge your customers
  919. for BUZ.EXE in any manner, or you are a "commercial distributor" and MUST
  920. negotiate a contractual arrangement.
  921.  
  922.  
  923.  
  924. ~     Shareware Distributors
  925. ----------------------------
  926.  
  927. You may distribute BUZ.EXE 1.10 in a way that is consistent with the other
  928. Shareware products that you offer (ASP standards or better).  If you
  929. actually utilize BUZ.EXE for your marketing or distribution in any manner,
  930. (e.g. Shareware catalog on disk) you must adhere to the rules of a
  931. "distributing user", and register as such.
  932.  
  933.  
  934.  
  935.                                           (To Print: Press "P" ENTER "Y")
  936. ~* Registration Form for BUZ.EXE V1.10
  937. --------------------------------------
  938.  
  939.  
  940. Basic User Registration ____________ first 5 computers -  $5 per computer
  941.  
  942.                                   6th to 100th computer - $4 per computer
  943.  
  944.                                     over 100th computer - $3 per computer
  945.  
  946. Registration fee amounts should be based on the total number of computers
  947. that BUZ.EXE is installed on, or used on, for any one address or company.
  948.  
  949.  
  950. Distributing User _ (See the above conditions) __________ $30 per address
  951.  
  952.  
  953.  
  954. Type of registration ______________ Number ______  Amount ______________
  955.  
  956.  
  957. Company Name ____________________________________________________________
  958.  
  959. Name ____________________________________________________________________
  960.  
  961. Address _________________________________________________________________
  962.  
  963. City, State and Zip _____________________________________________________
  964.  
  965. Where did you acquire BUZ? ______________________________________________
  966.  
  967.  
  968. Send a Check or Money Order to:             Dan Jincks
  969.                                             HCR 77, Box 155A
  970.                                             Annapolis, MO 63620 USA
  971.  
  972.  
  973. Notice:  BUZ.EXE is distributed AS-IS.  The user accepts full
  974. responsibility for the suitability and usage of BUZ.EXE.  In no manner may
  975. the author, Dan Jincks, be held liable for any damages that may allegedly
  976. occur from the use of BUZ.EXE.
  977.  
  978.  ***********************************************************************
  979.  
  980. BUZ.EXE is dedicated to preserving our tree resources.  Hopefully a few
  981. trees will live a longer life (and continue purifying the air), due to the
  982. capabilities of BUZ.  Use BUZ to reduce your printer paper consumption
  983. whenever you can.
  984.  
  985.                                                            Dan
  986.  
  987.